package com.example.websocket.service;

import com.example.websocket.model.ChatGroup;
import com.example.websocket.model.CreateGroupRequest;

import java.util.List;

public interface ChatGroupService {
    void createGroup(String groupName, String creatorUsername);

    void deleteChatGroup(String groupId, String userId);

    void updateChatGroup(CreateGroupRequest request);

    void addMemberToGroup(String groupId, String username);

    void removeMemberFromGroup(String groupId, String username);

    List<ChatGroup> getUserGroups(String username);
}
